package com.example.fegin.client;

import com.example.good.pojo.GoodVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.ArrayList;

@FeignClient("goodserver")
public interface GoodClient {

    @GetMapping("/good/{id}")
    public GoodVo goodSelect(@PathVariable("id")Long id);

    @GetMapping("/good/list")
    public ArrayList<GoodVo> listSelect();
}
